import request from '../../util/request'

export default {
    wxLogin({code}) {
        return request({
            method: 'POST',
            data: {
                code
            },
            url: "weapp-auth/wxLogin",
        })
    },
	wxGetUserinfo(data){
		return request({
		    method: 'POST',
		    data,
		    url: "weapp-auth/wxGetUserinfo",
		})
	},

    getProfile(id){
        return request({
            url:"weapp-users/profile?id=" +id
        })
    },

    changeProfile(data){
        return request({
            method: 'POST',
            data,
            url: "weapp-users/changeProfile",
        })
    }


}
